home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
book
/
mac
/
ch23
/
fogworld.wrl
< prev
Wrap
Text File
|
1996-09-23
|
1KB
|
55 lines
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright [1997] By
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
children [
# Ambient lighting
DirectionalLight {
direction 0.0 -1.0 -1.0
intensity 0.2
ambientIntensity 1.0
},
# Floor
Shape {
appearance Appearance {
material Material {
ambientIntensity 0.5
diffuseColor 0.2 0.8 0.2
}
}
geometry Box { size 50.0 0.01 50.0 }
},
# Pair of columns
DEF ColumnPair Group {
children [
Transform {
translation -4.0 3.0 0.0
children DEF Column Shape {
appearance Appearance {
material Material {
diffuseColor 1.0 0.8 0.5
}
}
geometry Cylinder {
radius 0.3
height 6.0
}
}
},
Transform {
translation 4.0 3.0 0.0
children USE Column
}
]
},
# Several more pairs of columns
Transform { translation 0.0 0.0 -8.0 children USE ColumnPair },
Transform { translation 0.0 0.0 8.0 children USE ColumnPair },
Transform { translation 0.0 0.0 -16.0 children USE ColumnPair },
Transform { translation 0.0 0.0 16.0 children USE ColumnPair },
Transform { translation 0.0 0.0 -24.0 children USE ColumnPair },
Transform { translation 0.0 0.0 24.0 children USE ColumnPair },
]
}